-- Copyright (c) 2025 Huawei Technologies Co., Ltd.
-- openUBMC is licensed under Mulan PSL v2.
-- You can use this software according to the terms and conditions of the Mulan PSL v2.
-- You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2
--
-- THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
-- EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
-- MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
-- See the Mulan PSL v2 for more details.
local m = {}
local log = require 'mc.logging'

function m.get_lanes_map(input)
    local LanesMap = {}
    for k, v in ipairs(input) do
        log:error_easy('aaaaaaaaaaaaaa' .. k .. 'aaaaaaaa' .. v[1] .. 'aaaaaa' .. v[2])
        LanesMap[#LanesMap + 1] = string.format('/Lane_%s/to/NetWorkPort_%s/Lane_%s', k, v[1] + 1, v[2])
    end
    return LanesMap
end

return m